$(document).ready(function () {
$('#example').dataTable().columnFilter({ sPlaceHolder: "head:after",
aoColumns: 
[
  { type: "" },
  { type: "text", class: "text1" },
  { type: "text", class: "text1" },
  { type: "text", class: "text1" },
  { type: "text", class: "text1" },
  { type: "text", class: "text1" },
  { type: "text", class: "text1" },
  { type: "text", class: "text1" }
]
  });
});

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17838786-4']);
_gaq.push(['_trackPageview']);
(function () 
{
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();  

function setLoanDetailRow(obj2, loanDetailRow1)
{
  var loanDetailRow2 = obj2.value;
  var loanDetailRow  = loanDetailRow1 * loanDetailRow2 ;
  $(obj2).next('input:text').val(loanDetailRow);
}
function setInstallReciived(obj1)
{
  if(obj1.checked == true)
	{
	  var loanDetailRow1 = obj1.value;
	  var chid = obj1.id;
	  $("#installmentReceived"+chid).val('1');
    $("#installmentReceived"+chid).next('input:text').val(loanDetailRow1);
	}
	else
	{
    var chid=obj1.id;
	  $("#installmentReceived"+chid).val("0");
	  $("#installmentReceived"+chid).next('input:text').val("");
	}
}